package pl.edu.agh.neurony.exceptions;

public class NeuronNetException extends Exception {

	/**
	 * @uml.property  name="mistake"
	 */
	String mistake;
	
	public NeuronNetException() {
		super();
		mistake = "unknown";
	}
	
	public NeuronNetException(String err) {
		super(err);
		mistake = err;
	}
	
	public NeuronNetException(Exception ex) {
		super(ex);
		mistake = ex.getMessage();
	}

	public String getError() {
		return mistake;
	}
}